package com.wn.ioc;

import lombok.Data;

/**
 * @FileName: Demo
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/7/17 - 9:43
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Data
public class Demo {

    private String id;

    private String name;

    private User user;

    public Demo() {
    }

    public Demo(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public void show() {
        System.out.println("姓名: " + name);
    }
}
